package com.dina.saas.peccancy.util;

public class TaskFactory {

	public static Task getTask(Location location) {
		if (location.getName().equals("nanjing")) {
			return new NanJingTask();
		} else if ((location.getName().equals("shenzhen"))) {
			return new ShenZhenTask();
		} else {
			// to do
			return new DefaultTask();
		}
	}

}
